# coding:utf8
from abc import ABCMeta, abstractmethod


# 使用抽象类实现接口
class Payment(metaclass=ABCMeta):
    @abstractmethod
    def pay(self): pass


class AliPay(Payment):
    def paying(self, money):
        print("支付宝付款了%s块钱" % money)


class WeChat(Payment):
    def pay(self, money):
        print("微信付款了%s块钱" % money)


p = WeChat()
p.pay(5)
